gsk: Fix build on Visual Studio
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 28 Dec 2016 14:37:01 +0000 (22:37 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 29 Dec 2016 09:52:52 +0000 (17:52 +0800)
commit49a782413c63982a8c2cb1c99746e2d56d312994
tree990ccce67c6be7760b8aca80bd39132db0053323
parent9db5cc9a98728fd5e8425dead1f4e6290392423a
gsk: Fix build on Visual Studio

One cannot use #if...#endif within macro calls in Visual Studio and
possibly other compilers, and there are more uses of VLAs that need to be
replaced with g_newa().

There were also checks for the clip type in gskvulkanrenderpass.c which
were possibly not done right (using the address of the type value to check
for a type value), which triggered errors as one is attempting to compare
a pointer type to an enum/int type.

https://bugzilla.gnome.org/show_bug.cgi?id=773299
gsk/gskvulkancommandpool.c
gsk/gskvulkanrender.c
gsk/gskvulkanrenderpass.c